package connect4client.commands;


import messages.*;


/**
 * The AccountEditionSuccessful command.
 * 
 * This command will handle AccountEditionSuccessful messages.
 */
public class AccountEditionSuccessfulCommand extends Command {

	public AccountEditionSuccessfulCommand(AccountEditionSuccessfulMessage message){
		super(message);
	}
	
	@Override
	public void execute() {
		AccountEditionSuccessfulMessage message = (AccountEditionSuccessfulMessage) this.message;		
		guiMediator.accountEditionSuccessful(message.getSenderLogin(), message.getLogin());		
	}
}
